package com.example.test;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 校验返回对象
 *
 * @param <T>
 */
@Data
public class ValidatorDTO<T> implements Serializable {
    @Schema(description = "原始集合下标(行号)")
    private Integer rowNum;
    @Schema(description = "原始集合行数据")
    private T row;
    @Schema(description = "错误信息集合")
    private List<String> errors;
}